-- BP 7.1.6 content: InstanceStateMachine syschar: 3 persistence-version: 7.1.6

INSERT INTO SM_ISM
	VALUES ("90b2855b-71ce-414c-8639-a4eff1fac015",
	"8f49c9c2-0117-41e4-95b3-eb1b13d4b9a5");
INSERT INTO SM_SM
	VALUES ("90b2855b-71ce-414c-8639-a4eff1fac015",
	'',
	0);
INSERT INTO SM_MOORE
	VALUES ("90b2855b-71ce-414c-8639-a4eff1fac015");
INSERT INTO SM_LEVT
	VALUES ("dab14c8b-814d-424c-a860-a14f1c7bf87a",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_SEVT
	VALUES ("dab14c8b-814d-424c-a860-a14f1c7bf87a",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_EVT
	VALUES ("dab14c8b-814d-424c-a860-a14f1c7bf87a",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000",
	1,
	'create',
	0,
	'',
	'IREF1',
	'');
INSERT INTO SM_LEVT
	VALUES ("f6efdc68-71da-40c5-9fbf-c6a2c93fcdab",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_SEVT
	VALUES ("f6efdc68-71da-40c5-9fbf-c6a2c93fcdab",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_EVT
	VALUES ("f6efdc68-71da-40c5-9fbf-c6a2c93fcdab",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000",
	2,
	'destroy',
	0,
	'',
	'IREF2',
	'');
INSERT INTO SM_STATE
	VALUES ("cc5e676f-be2c-4c8f-86f2-09af3890b3bd",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000",
	'Creating',
	1,
	0);
INSERT INTO SM_CH
	VALUES ("cc5e676f-be2c-4c8f-86f2-09af3890b3bd",
	"dab14c8b-814d-424c-a860-a14f1c7bf87a",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("cc5e676f-be2c-4c8f-86f2-09af3890b3bd",
	"dab14c8b-814d-424c-a860-a14f1c7bf87a",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_SEME
	VALUES ("cc5e676f-be2c-4c8f-86f2-09af3890b3bd",
	"f6efdc68-71da-40c5-9fbf-c6a2c93fcdab",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_STATE
	VALUES ("474cdd0c-dbb6-4ce4-97d4-4c4b6ee8a5d9",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000",
	'Destroying',
	2,
	1);
INSERT INTO SM_CH
	VALUES ("474cdd0c-dbb6-4ce4-97d4-4c4b6ee8a5d9",
	"dab14c8b-814d-424c-a860-a14f1c7bf87a",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("474cdd0c-dbb6-4ce4-97d4-4c4b6ee8a5d9",
	"dab14c8b-814d-424c-a860-a14f1c7bf87a",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_CH
	VALUES ("474cdd0c-dbb6-4ce4-97d4-4c4b6ee8a5d9",
	"f6efdc68-71da-40c5-9fbf-c6a2c93fcdab",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000",
	'');
INSERT INTO SM_SEME
	VALUES ("474cdd0c-dbb6-4ce4-97d4-4c4b6ee8a5d9",
	"f6efdc68-71da-40c5-9fbf-c6a2c93fcdab",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_CRTXN
	VALUES ("8859cb73-90ed-4478-b2ea-2906a3707a88",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"dab14c8b-814d-424c-a860-a14f1c7bf87a",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_TXN
	VALUES ("8859cb73-90ed-4478-b2ea-2906a3707a88",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"cc5e676f-be2c-4c8f-86f2-09af3890b3bd",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_NSTXN
	VALUES ("63d93e61-7ca3-421a-a509-98a380652d2a",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"cc5e676f-be2c-4c8f-86f2-09af3890b3bd",
	"f6efdc68-71da-40c5-9fbf-c6a2c93fcdab",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_TXN
	VALUES ("63d93e61-7ca3-421a-a509-98a380652d2a",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"474cdd0c-dbb6-4ce4-97d4-4c4b6ee8a5d9",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO SM_MOAH
	VALUES ("e31474c1-3309-42a1-aadc-8c45ea98bfa9",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"cc5e676f-be2c-4c8f-86f2-09af3890b3bd");
INSERT INTO SM_AH
	VALUES ("e31474c1-3309-42a1-aadc-8c45ea98bfa9",
	"90b2855b-71ce-414c-8639-a4eff1fac015");
INSERT INTO SM_ACT
	VALUES ("e31474c1-3309-42a1-aadc-8c45ea98bfa9",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	1,
	'// Only create if type doesn''t exist
select many irefs from instances of IREF;
if (cardinality irefs == 1)
   create object instance type of TYPE;
   create object instance core of CORE;
   relate type to core across R401;
   type.name = "instance reference";
   core.type = data_t::INSTANCE_REFERENCE;
   relate core to self across R403;
   self.generateSupportedOperators();
else
   LOG::LogFailure(message:"Multiple creation of type IREF attempted!");
   generate IREF2:destroy to self;
end if;',
	'',
	0);
INSERT INTO SM_TAH
	VALUES ("be50881b-ee26-4264-88ec-a896fd00fa34",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"8859cb73-90ed-4478-b2ea-2906a3707a88");
INSERT INTO SM_AH
	VALUES ("be50881b-ee26-4264-88ec-a896fd00fa34",
	"90b2855b-71ce-414c-8639-a4eff1fac015");
INSERT INTO SM_ACT
	VALUES ("be50881b-ee26-4264-88ec-a896fd00fa34",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	1,
	'',
	'',
	0);
INSERT INTO SM_MOAH
	VALUES ("4a5aa308-8dac-434a-9669-1464cf4b6773",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"474cdd0c-dbb6-4ce4-97d4-4c4b6ee8a5d9");
INSERT INTO SM_AH
	VALUES ("4a5aa308-8dac-434a-9669-1464cf4b6773",
	"90b2855b-71ce-414c-8639-a4eff1fac015");
INSERT INTO SM_ACT
	VALUES ("4a5aa308-8dac-434a-9669-1464cf4b6773",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	1,
	'select one core related by self->CORE[R403];
if (not empty core)
  core.destroy();
  unrelate core from self across R403;
  delete object instance core;
end if;',
	'',
	0);
INSERT INTO SM_TAH
	VALUES ("ede66632-a535-44c9-a2b1-7bf7738cc6f4",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	"63d93e61-7ca3-421a-a509-98a380652d2a");
INSERT INTO SM_AH
	VALUES ("ede66632-a535-44c9-a2b1-7bf7738cc6f4",
	"90b2855b-71ce-414c-8639-a4eff1fac015");
INSERT INTO SM_ACT
	VALUES ("ede66632-a535-44c9-a2b1-7bf7738cc6f4",
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	1,
	'',
	'',
	0);
INSERT INTO GD_MD
	VALUES ("236d42a9-ac7b-4f20-b8fd-1642a092709d",
	8,
	"90b2855b-71ce-414c-8639-a4eff1fac015",
	40,
	0,
	0,
	1,
	1,
	1,
	12,
	1,
	0,
	0,
	0,
	0,
	0,
	'4.1.17',
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Instance Reference::Instance State Machine');
INSERT INTO GD_GE
	VALUES ("e9768d1f-10ce-4880-8be1-7f984602dcc1",
	"236d42a9-ac7b-4f20-b8fd-1642a092709d",
	"cc5e676f-be2c-4c8f-86f2-09af3890b3bd",
	41,
	0,
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Instance Reference::Instance State Machine::Creating');
INSERT INTO GD_SHP
	VALUES ("e9768d1f-10ce-4880-8be1-7f984602dcc1");
INSERT INTO GD_NCS
	VALUES ("e9768d1f-10ce-4880-8be1-7f984602dcc1");
INSERT INTO DIM_ND
	VALUES (169.000000,
	97.000000,
	"e9768d1f-10ce-4880-8be1-7f984602dcc1");
INSERT INTO DIM_GE
	VALUES (4336.000000,
	3144.000000,
	"e9768d1f-10ce-4880-8be1-7f984602dcc1",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("e9768d1f-10ce-4880-8be1-7f984602dcc1",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_CON
	VALUES ("411f18ea-8471-40d2-8066-51340e912ebe",
	4410.000000,
	3144.000000,
	"e9768d1f-10ce-4880-8be1-7f984602dcc1");
INSERT INTO DIM_CON
	VALUES ("dc273893-9677-4054-bfcd-ed246ef905d0",
	4488.000000,
	3205.000000,
	"e9768d1f-10ce-4880-8be1-7f984602dcc1");
INSERT INTO DIM_CON
	VALUES ("0e3ff6eb-36b0-4227-85ab-ed998a70c66a",
	4422.000000,
	3241.000000,
	"e9768d1f-10ce-4880-8be1-7f984602dcc1");
INSERT INTO GD_GE
	VALUES ("37871b05-89c0-41f7-8bcf-3382b1256296",
	"236d42a9-ac7b-4f20-b8fd-1642a092709d",
	"8859cb73-90ed-4478-b2ea-2906a3707a88",
	49,
	0,
	'IREF1: create');
INSERT INTO GD_CON
	VALUES ("37871b05-89c0-41f7-8bcf-3382b1256296",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("ad6be1b3-d157-4d13-88c2-c0cea3d99ecb",
	"37871b05-89c0-41f7-8bcf-3382b1256296",
	0,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"ad6be1b3-d157-4d13-88c2-c0cea3d99ecb");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"ad6be1b3-d157-4d13-88c2-c0cea3d99ecb",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("ad6be1b3-d157-4d13-88c2-c0cea3d99ecb",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("ea3f5e3b-21e7-46a7-baff-7163be574cb9",
	"37871b05-89c0-41f7-8bcf-3382b1256296",
	2,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"ea3f5e3b-21e7-46a7-baff-7163be574cb9");
INSERT INTO DIM_GE
	VALUES (4277.000000,
	3093.000000,
	"ea3f5e3b-21e7-46a7-baff-7163be574cb9",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("ea3f5e3b-21e7-46a7-baff-7163be574cb9",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("4bb1c6b7-a334-414e-bc5c-e507ab1f815e",
	"37871b05-89c0-41f7-8bcf-3382b1256296",
	1,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"4bb1c6b7-a334-414e-bc5c-e507ab1f815e");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"4bb1c6b7-a334-414e-bc5c-e507ab1f815e",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("4bb1c6b7-a334-414e-bc5c-e507ab1f815e",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_LS
	VALUES ("73718b8d-9be0-426a-a1e8-d4be21c6c68a",
	"37871b05-89c0-41f7-8bcf-3382b1256296",
	"00000000-0000-0000-0000-000000000000",
	"6317e535-cfa7-47a9-afe6-1bb0e2854181",
	"28430fb1-3b5d-4fb0-9af3-c261a2b0c8c5");
INSERT INTO DIM_WAY
	VALUES ("6317e535-cfa7-47a9-afe6-1bb0e2854181",
	4410.000000,
	3144.000000,
	"37871b05-89c0-41f7-8bcf-3382b1256296",
	"00000000-0000-0000-0000-000000000000",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_WAY
	VALUES ("28430fb1-3b5d-4fb0-9af3-c261a2b0c8c5",
	4410.000000,
	3060.000000,
	"37871b05-89c0-41f7-8bcf-3382b1256296",
	"00000000-0000-0000-0000-000000000000",
	"6317e535-cfa7-47a9-afe6-1bb0e2854181");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"37871b05-89c0-41f7-8bcf-3382b1256296",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("37871b05-89c0-41f7-8bcf-3382b1256296",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ED
	VALUES ("411f18ea-8471-40d2-8066-51340e912ebe",
	"00000000-0000-0000-0000-000000000000",
	"37871b05-89c0-41f7-8bcf-3382b1256296");
INSERT INTO GD_GE
	VALUES ("64cbb654-da41-4982-b8fd-ab09483ef4b5",
	"236d42a9-ac7b-4f20-b8fd-1642a092709d",
	"474cdd0c-dbb6-4ce4-97d4-4c4b6ee8a5d9",
	41,
	0,
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Instance Reference::Instance State Machine::Destroying');
INSERT INTO GD_SHP
	VALUES ("64cbb654-da41-4982-b8fd-ab09483ef4b5");
INSERT INTO GD_NCS
	VALUES ("64cbb654-da41-4982-b8fd-ab09483ef4b5");
INSERT INTO DIM_ND
	VALUES (180.000000,
	84.000000,
	"64cbb654-da41-4982-b8fd-ab09483ef4b5");
INSERT INTO DIM_GE
	VALUES (4336.000000,
	3324.000000,
	"64cbb654-da41-4982-b8fd-ab09483ef4b5",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("64cbb654-da41-4982-b8fd-ab09483ef4b5",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_CON
	VALUES ("9ae649c4-02a9-4ac9-a61a-bda2d2c3e30b",
	4422.000000,
	3324.000000,
	"64cbb654-da41-4982-b8fd-ab09483ef4b5");
INSERT INTO GD_GE
	VALUES ("f462b5bc-3691-429c-9851-8322489a2a8e",
	"236d42a9-ac7b-4f20-b8fd-1642a092709d",
	"63d93e61-7ca3-421a-a509-98a380652d2a",
	42,
	0,
	'shlaer-mellor-metamodel::metamodel::Shlaer-Mellor Metamodel::Type::Instance Reference::Instance State Machine::Creating::IREF2: destroy');
INSERT INTO GD_CON
	VALUES ("f462b5bc-3691-429c-9851-8322489a2a8e",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("9a1436fc-9dea-4dda-b507-22b2207f1eaf",
	"f462b5bc-3691-429c-9851-8322489a2a8e",
	0,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"9a1436fc-9dea-4dda-b507-22b2207f1eaf");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"9a1436fc-9dea-4dda-b507-22b2207f1eaf",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("9a1436fc-9dea-4dda-b507-22b2207f1eaf",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("e91e845f-f1a9-4790-8ecf-5e4b20c1abfa",
	"f462b5bc-3691-429c-9851-8322489a2a8e",
	2,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"e91e845f-f1a9-4790-8ecf-5e4b20c1abfa");
INSERT INTO DIM_GE
	VALUES (4444.000000,
	3271.000000,
	"e91e845f-f1a9-4790-8ecf-5e4b20c1abfa",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("e91e845f-f1a9-4790-8ecf-5e4b20c1abfa",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_CTXT
	VALUES ("20516f1f-f6c0-4b09-89c8-de5d8d27598f",
	"f462b5bc-3691-429c-9851-8322489a2a8e",
	1,
	0.000000,
	0.000000);
INSERT INTO DIM_ND
	VALUES (0.000000,
	0.000000,
	"20516f1f-f6c0-4b09-89c8-de5d8d27598f");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"20516f1f-f6c0-4b09-89c8-de5d8d27598f",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("20516f1f-f6c0-4b09-89c8-de5d8d27598f",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO GD_LS
	VALUES ("510b687e-d252-4b56-9ce7-f9c5d17ce863",
	"f462b5bc-3691-429c-9851-8322489a2a8e",
	"00000000-0000-0000-0000-000000000000",
	"d4f931fe-6f9e-4edf-afc2-baa1391251e2",
	"6834c661-e68a-44a2-bd39-6d0903337c6e");
INSERT INTO DIM_WAY
	VALUES ("d4f931fe-6f9e-4edf-afc2-baa1391251e2",
	4422.000000,
	3241.000000,
	"f462b5bc-3691-429c-9851-8322489a2a8e",
	"00000000-0000-0000-0000-000000000000",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_WAY
	VALUES ("6834c661-e68a-44a2-bd39-6d0903337c6e",
	4422.000000,
	3324.000000,
	"f462b5bc-3691-429c-9851-8322489a2a8e",
	"00000000-0000-0000-0000-000000000000",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_GE
	VALUES (0.000000,
	0.000000,
	"f462b5bc-3691-429c-9851-8322489a2a8e",
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ELE
	VALUES ("f462b5bc-3691-429c-9851-8322489a2a8e",
	0,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO DIM_ED
	VALUES ("0e3ff6eb-36b0-4227-85ab-ed998a70c66a",
	"9ae649c4-02a9-4ac9-a61a-bda2d2c3e30b",
	"f462b5bc-3691-429c-9851-8322489a2a8e");
INSERT INTO DIM_DIA
	VALUES ("236d42a9-ac7b-4f20-b8fd-1642a092709d",
	'',
	1.000000,
	0.000000,
	0.000000,
	"00000000-0000-0000-0000-000000000000");
INSERT INTO O_OBJ_PROXY
	VALUES ("8f49c9c2-0117-41e4-95b3-eb1b13d4b9a5",
	'Instance Reference',
	426,
	'IREF',
	'An instance reference is the type to which all object instances must conform. 
This is a core type that says objects have a common set of operations defined 
for object usage. Usage implies values, and object values are instances.',
	"00000000-0000-0000-0000-000000000000",
	'../Instance Reference.xtuml');
